﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_Inicial.Master" AutoEventWireup="true"
    CodeBehind="CadastroUsuario.aspx.cs" Inherits="Manager.Formularios_Cadastro.CadastroUsuario1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/Styles/StyleGrid.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/StyleTextBox.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div style="height: auto; width: auto; padding-top: 10px; padding-left: 10px">
        <div style="margin-top: 15px; margin-right: 15px; height: 26px; background-image: url('/Layout/Layout_Topicos.png');
            padding-left: 4px; background-repeat: repeat-x;">
            <asp:Label ID="Label3" runat="server" Font-Size="Medium" ForeColor="#333333" Text="Cadastro Usuario"></asp:Label>
        </div>
        <div style="margin-right: 15px; margin-bottom: 15px; padding-bottom: 4px padding-left: 4px;
            background-color: #FFFFFF;">
            <table width="100%">
                <tr>
                    <td>
                        <asp:TextBox ID="txtNome" runat="server" BorderColor="Red" BorderStyle="Solid" BorderWidth="2px"
                            CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px" Height="18px"
                            Width="300px"></asp:TextBox>
                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtNome"
                            WatermarkText="Nome Usuário" WatermarkCssClass="watermarked">
                        </asp:TextBoxWatermarkExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="O campo deve ser preenchido!"
                            Display="None" ControlToValidate="txtNome">
                        </asp:RequiredFieldValidator><asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3"
                            runat="server" TargetControlID="RequiredFieldValidator3" Width="300px" PopupPosition="Right"
                            CloseImageUrl="~/ImagensErros/Cancelar1.png" WarningIconImageUrl="~/ImagensErros/Atencao.png">
                        </asp:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtLogin" runat="server" BorderColor="Red" BorderStyle="Solid" BorderWidth="2px"
                            CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px" Height="18px"
                            Width="100px"></asp:TextBox>
                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtLogin"
                            WatermarkText="Login" WatermarkCssClass="watermarked">
                        </asp:TextBoxWatermarkExtender>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="O campo deve ser preenchido!"
                            Display="None" ControlToValidate="txtLogin">
                        </asp:RequiredFieldValidator><asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1"
                            runat="server" TargetControlID="RequiredFieldValidator3" Width="300px" PopupPosition="Right"
                            CloseImageUrl="~/ImagensErros/Cancelar1.png" WarningIconImageUrl="~/ImagensErros/Atencao.png">
                        </asp:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSenha" runat="server" BorderColor="Red" BorderStyle="Solid" BorderWidth="2px"
                            CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px" Height="18px"
                            Width="100px"></asp:TextBox>
                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtSenha"
                            WatermarkText="Senha" WatermarkCssClass="watermarked">
                        </asp:TextBoxWatermarkExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="O campo deve ser preenchido!"
                            Display="None" ControlToValidate="txtSenha">
                        </asp:RequiredFieldValidator><asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2"
                            runat="server" TargetControlID="RequiredFieldValidator3" Width="300px" PopupPosition="Right"
                            CloseImageUrl="~/ImagensErros/Cancelar1.png" WarningIconImageUrl="~/ImagensErros/Atencao.png">
                        </asp:ValidatorCalloutExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddTipoUsuario" runat="server" DataTextField="tipoUsuario" DataValueField="idTipo_Usuario"
                            Width="400px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:ImageButton ID="btSalvar" runat="server" ImageUrl="~/Botao/Salvar.png" OnClick="btSalvar_Click" />
                                </td>
                                <td>
                                    <asp:ImageButton ID="btCancelar" runat="server" ImageUrl="~/Botao/Cancelar.png" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <div>
                <asp:GridView ID="gvUsuario" runat="server" AutoGenerateColumns="False" GridLines="None"
                    AllowPaging="True" CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
                    Width="390px" ShowFooter="True">
                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                    <Columns>
                        <asp:BoundField DataField="Nome" HeaderText="Nome" />
                        <asp:BoundField DataField="Login" HeaderText="Login" />
                        <asp:BoundField DataField="Senha" HeaderText="Senha" />
                    </Columns>
                    <PagerStyle CssClass="pgr"></PagerStyle>
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
